#include"SeqList.h"

void test1()
{
	SL s;
	SLInit(&s);
	SLPushBack(&s, 1);
	SLPushBack(&s, 2);
	SLPushBack(&s, 3);
	SLPushBack(&s, 4);
	SLPrint(&s);//1 2 3 4
	int pos=SLFind(&s,2);
	SLInsert(&s, pos, 7);
	SLPrint(&s);// 1 7 2 3 4
	SLErase(&s, pos);
	SLPrint(&s);//1 2 3 4
	SLModify(&s, pos, 6);
	SLPrint(&s);//1 6 3 4
	SLDestory(&s);

	//SLPushFront(&s, 5);
	//SLPrint(&s);// 5 1 2 3 4
	//SLPopBack(&s);
	//SLPopBack(&s);
	//SLPrint(&s);// 5 1 2
	//SLPopFront(&s);
	//SLPrint(&s);//1 2
}

int main()
{
	test1();
}